<?php
namespace App\Models\Relations;

trait TeachesInfoTrait {
    
    public function teaches()
    {
        return $this->hasOne('App\Model\Teaches','id','teaches_id');
    }
    
    public function chapter()
    {
        return $this->hasOne('App\Model\TeachesChapter','id','chapter_id');
    }
    
    public function content()
    {
        return $this->hasOne('App\Model\TeachesContent','id','content_id');
    }
}
